<?php 
/**create by fu */
namespace app\api\controller\v1;

use app\api\service\UserToken;
use app\api\validate\TokenGet;

/**
 * 
 */
class Token
{
	public function getToken($code='')
	{
		(new TokenGet())->goCheck();
// dump(config('wx.login_url'));exit;
		$token = (new UserToken($code))->get();
 
		return [
			'token'=>$token,
		];
	}
	 
}




 ?>